<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="icon" type="image/x-icon" th:href="@{/img/favicon.ico}">

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>考试详情</title>

    <script th:src="@{/js/jquery-3.3.1.js}"></script>
    <script th:src="@{/js/popper.js}"></script>
    <script th:src="@{/js/toolkit.js}"></script>
    <script th:src="@{/js/component.js}"></script>

    <link th:href="@{/css/antd.css}" rel="stylesheet">
    <link th:href="@{/css/docs.css}" rel="stylesheet">
    <link th:href="@{/css/toolkit-light.css}" rel="stylesheet">

    <style>
        .margin_top {
            margin-top: 12px;
        }

        .logo {
            width: 8%;
            height: auto;
        }

        .nav_top {
            margin-top: 5px;
            right: 1.5%;
        }

        .col-center-block {
            float: none;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .label_top {
            margin-top: 8px;
        }

        .up {
            z-index: 10;
        }
    </style>
</head>
<body>
<div class="m-l-md m-r-md">
    <!--导航栏-->
    <div class="text-md-left margin_top">
        <div class="row">
            <img class="logo col-md-1" th:src="@{/img/ahza-black-oj.png}">
            <ul class="nav nav-bordered col-md-10 nav_top">
                <li class="nav-header form-inline">
                    <h1>后台</h1>
                </li>
                <li class="margin_top">
                    <a href="/main">首页</a>
                </li>
                <li class="margin_top"><a href="/paper">试卷</a></li>
                <li class="active margin_top"><a href="/quiz">考试</a></li>
                <li class="margin_top"><a href="/result">成绩</a></li>
                <li class="margin_top"><a href="/logout">退出系统</a></li>
            </ul>
        </div>
    </div>
    <!--分割线-->
    <div class="row">
        <div class="ant-divider ant-divider-horizontal col-md-12">
            <h3 class="hr-divider-content hr-divider-heading"></h3>
        </div>
    </div>

    <h3 class="text-md-center">考试详情</h3>
    <div class="row text-md-center docs-example col-md-8 col-center-block">
        <div class="container">
            <form action="/saveQuiz" method="post" class="text-md-center">
                <div class="row">
                    <div class="input-group form-group input-with-icon col-md-12">
                        <input class="form-control" type="text" id="title" name="title" placeholder="考试名称" th:value="${title}" required disabled>
                        <span class="up icon icon-check"></span>
                    </div>
                </div>
                <div class="row">
                    <div class="input-group form-group input-with-icon col-md-12">
                        <label class="col-md-1 p-l-0 p-r-0 label_top text-left" for="type">考试科目</label>
                        <select class="custom-select col-md-11" id="type" name="type" disabled>
                            <option th:if="${type eq '面向对象程序设计A'}" th:selected="selected" value="面向对象程序设计A">面向对象程序设计A</option>
                            <option th:if="${type eq '操作系统'}" th:selected="selected" value="操作系统">操作系统</option>
                            <option th:if="${type eq '软件工程导论'}" th:selected="selected" value="软件工程导论">软件工程导论</option>
                            <option th:if="${type eq '数据结构'}" th:selected="selected" value="数据结构">数据结构</option>
                            <option th:if="${type eq '数据库'}" th:selected="selected" value="数据库">数据库</option>
                        </select>
                    </div>
                </div>

                <div class="row">
                    <label class="col-md-2 p-l-0 p-r-0 label_top text-left" for="type">考试对应的班级</label>
                </div>
                <div class="row">
                    <div class="panel-group" id="classPanel">
                        <!--14级-->
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a data-toggle="collapse" data-parent="#classPanel" href="#14">2014级</a>
                                </h4>
                            </div>
                            <div id="14" class="panel-collapse collapse in">
                                <div class="panel-body">
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1401')}" th:checked="checked" type="checkbox" name="clazz" value="软件1401" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1401
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1402')}" th:checked="checked" type="checkbox" name="clazz" value="软件1402" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1402
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1403')}" th:checked="checked" type="checkbox" name="clazz" value="软件1403" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1403
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1404')}" th:checked="checked" type="checkbox" name="clazz" value="软件1404" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1404
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1405')}" th:checked="checked" type="checkbox" name="clazz" value="软件1405" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1405
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1406')}" th:checked="checked" type="checkbox" name="clazz" value="软件1406" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1406
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--15级-->
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a data-toggle="collapse" data-parent="#classPanel" href="#15">2015级</a>
                                </h4>
                            </div>
                            <div id="15" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1501')}" th:checked="checked" type="checkbox" name="clazz" value="软件1501" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1501
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1502')}" th:checked="checked" type="checkbox" name="clazz" value="软件1502" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1502
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1503')}" th:checked="checked" type="checkbox" name="clazz" value="软件1503" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1503
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1504')}" th:checked="checked" type="checkbox" name="clazz" value="软件1504" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1504
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1505')}" th:checked="checked" type="checkbox" name="clazz" value="软件1505" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1505
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1506')}" th:checked="checked" type="checkbox" name="clazz" value="软件1506" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1506
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1507')}" th:checked="checked" type="checkbox" name="clazz" value="软件1507" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1507
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1508')}" th:checked="checked" type="checkbox" name="clazz" value="软件1508" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1508
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1509')}" th:checked="checked" type="checkbox" name="clazz" value="软件1509" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1509
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1510')}" th:checked="checked" type="checkbox" name="clazz" value="软件1510" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1510
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '软件1511')}" th:checked="checked" type="checkbox" name="clazz" value="软件1511" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            软件1511
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '数媒1501')}" th:checked="checked" type="checkbox" name="clazz" value="数媒1501" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            数媒1501
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '数媒1502')}" th:checked="checked" type="checkbox" name="clazz" value="数媒1502" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            数媒1502
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '数媒1503')}" th:checked="checked" type="checkbox" name="clazz" value="数媒1503" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            数媒1503
                                        </label>
                                    </div>
                                    <div class="checkbox custom-control custom-checkbox">
                                        <label>
                                            <input th:if="${#lists.contains(clazz, '数媒1504')}" th:checked="checked" type="checkbox" name="clazz" value="数媒1504" disabled>
                                            <span class="custom-control-indicator ant-col-md-offset-11"></span>
                                            数媒1504
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="input-group form-group input-with-icon col-md-12">
                        <label class="col-md-11 p-l-0 p-r-0 label_top text-left" for="type">选择试卷</label>
                        <select class="custom-select col-md-12" id="paper" name="paper" disabled>
                            <option th:if="${destPaper} eq ${paper.name}" th:selected="selected" th:each="paper:${papers}" th:value="${paper.name}" th:text="${paper.name}"></option>
                        </select>
                    </div>
                </div>
            </form>
            <div class="col-center-block">
                <div class="row form-inline">
                    <div class="input-group form-group col-md-4 col-center-block">
                        <button th:onclick="'window.location.href=\'/quizUpdate/' + ${quizId} + '\''" class="btn btn-primary form-control">修改考试</button>
                    </div>
                    <div class="input-group form-group col-md-4 col-center-block">
                        <button th:onclick="'window.location.href=\'/quizDelete/' + ${quizId} + '\''" class="btn btn-danger form-control">删除考试</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>